using System;
using ServiceStack.WebHost.Endpoints;
using log4net;
using ODSWebService.DTO.Requests;

namespace ODSWebService.Services
{
	public class ODSServiceHost : AppHostBase
	{
		private static readonly ILog logger = LogManager.GetLogger(typeof(ODSServiceHost));
		public ODSServiceHost () : base("Service", typeof(ODSServiceHost).Assembly)
		{
		}
		
		#region implemented abstract members of ServiceStack.WebHost.Endpoints.AppHostBase
		public override void Configure (Funq.Container container)
		{			
			logger.Info("Configuring service host.");
			this.Routes.Add<SearchRequest>("/search");
			this.Routes.Add<IndexRequest>("/indexation");
		}		
		#endregion
		
	}
}

